﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AgriMarketWebProj.AgriMarketService.TypeOfAuction>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AgriMarket|Quản trị kiếu đấu giá
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

<h2>EditTypeOfAuction</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<%=Html.ValidationSummary(false) %>
<% if (Model != null)
   { %>
<form method="post" action="/TypeOfAuctionAdmin/Edit">
    <%: Html.ValidationSummary(true)%>
    <fieldset>
        <legend>TypeOfAuction</legend>

        <div class="editor-label">
            Mã: <%=Model.TypeId %>
            <%="<input type='hidden' name='TypeId' value='"+Model.TypeId+"'>" %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.TypeName)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TypeName)%>
            <%: Html.ValidationMessageFor(model => model.TypeName)%>
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
</form>
<%} %>
<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
